# -*- encoding: utf-8 -*-
"""
    比赛数据：
    games_case_data
"""

game_test_1 = {
    "order": '管道测试算例1-低平均持液',
    "inlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
              "M": {"time": None, "value": 12},
              "T": {"time": None, "value": 323.15},
              "p": {"time": None, "value": None}},
    "outlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
               "M": {"time": None, "value": None},
               "T": {"time": None, "value": None},
               "p": {"time": None, "value": 500000}},
    "pipe": {"h": [0],
             "L": [4000],
             "D": 0.12,
             "eps": 0.00008,
             "K": 1},
    "environment": {"T0": 279.15},
    "cfd": {"dx": 40,
            "dt_min": 0.01,
            "dt_max": 5,
            "max_time": 3600},
    "TAB": {"tab_path": "./tests/tab_data/game_tabs/test3.tab"},
    "gt_path": "tests/olga_results/games_OLGA1.xlsx"
}

game_test_2 = {
    "order": '管道测试算例2-高平均持液',
    "inlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
              "M": {"time": None, "value": 12},
              "T": {"time": None, "value": 323.15},
              "p": {"time": None, "value": None}},
    "outlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
               "M": {"time": None, "value": None},
               "T": {"time": None, "value": None},
               "p": {"time": None, "value": 490000}},
    "pipe": {"h": [0],
             "L": [4000],
             "D": 0.259,
             "eps": 0.00008,
             "K": 1},
    "environment": {"T0": 279.15},
    "cfd": {"dx": 40,
            "dt_min": 0.01,
            "dt_max": 5,
            "max_time": 3600},
    "TAB": {"tab_path": "./tests/tab_data/game_tabs/test2.tab"},
    "gt_path": "tests/olga_results/games_OLGA2.xlsx"
}

game_test_3 = {
    "order": '管道测试算例3-地形',
    "inlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
              "M": {"time": None, "value": 25.926}, ## todo: 多个相的M共同输入，还未解决
              "T": {"time": None, "value": 329.15},
              "p": {"time": None, "value": None}},
    "outlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
               "M": {"time": None, "value": None},
               "T": {"time": None, "value": None},
               "p": {"time": None, "value": 1000000}},
    "pipe": {
             "h": [-0.2, 1, -0.2, 1, -0.2],
             # "h": [0, 0, 0, 0, 0],
             "L": [150, 150, 150, 150, 100],
             "D": 0.259,
             "eps": 0.00008,
             "K": 0.8},
    "environment": {"T0": 288.15},
    "cfd": {"dx": 20,
            "dt_min": 0.01,
            "dt_max": 5,
            "max_time": 3600},
    "TAB": {"tab_path": "./tests/tab_data/game_tabs/test3.tab"},
    "gt_path": None
}

game_test_4 = {
    "order": '管道测试算例4',
    "inlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
              "M": {"time": None, "value": 1.34}, ## todo: 多个相的M共同输入，还未解决
              "T": {"time": None, "value": 329.15},
              "p": {"time": None, "value": None}},
    "outlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
               "M": {"time": None, "value": None},
               "T": {"time": None, "value": None},
               "p": {"time": None, "value": 880000}},
    "pipe": {"h": [-8.5],
             "L": [12221],
             "D": 0.259,
             "eps": 0.00008,
             "K": 0.8},
    "environment": {"T0": 288.15},
    "cfd": {"dx": 270,
            "dt_min": 0.01,
            "dt_max": 5,
            "max_time": 3600},
    "TAB": {"tab_path": "./tests/tab_data/game_tabs/test3.tab"},
    "gt_path": None   #测试案例有问题，给定的长度是L=12221，但是管道横坐标最后也是12221，有歧义。
}

game_test_5 = {
    "order": '管道测试算例1-低平均持液',
    "inlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
              "M": {"time": None, "value": 10},
              "T": {"time": None, "value": 323.15},
              "p": {"time": None, "value": None}},
    "outlet": {"V_g": None, "V_L": None, "rho_g": None, "rho_L": None, "alpha_g": None, "alpha_L": None,
               "M": {"time": None, "value": None},
               "T": {"time": None, "value": None},
               "p": {"time": None, "value": 500000}},
    "pipe": {"h": [0, -15, 400, 0],
             "L": [4000, 500, 400, 20],
             "D": 0.12,
             "eps": 0.00008,
             "K": 1,
             "smooth": True},
    "environment": {"T0": 279.15},
    "cfd": {"dx": 40,
            "dt_min": 0.005,
            "dt_max": 5,
            "max_time": 3600},

    "TAB": {"tab_path": "./tests/tab_data/game_tabs/test3.tab"},
    "gt_path": "tests/olga_results/games_OLGA5.xlsx"
}